package com.lx.demo1;

public class Proxy {
    private LandLord landLord;

    public Proxy() {
    }

    public Proxy(LandLord landLord) {
        this.landLord = landLord;
    }

    public void rent(){
        landLord.rent();
        lookHouse();
        signContract();
    }

    public void lookHouse(){
        System.out.println("中介带你看房！");
    }

    public void signContract(){
        System.out.println("签订租赁合同！");
    }

}
